﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;
using clf.weighing.entity;

namespace weighing
{
    /// <summary>
    /// 临时数据(多设备可能共享)
    /// </summary>

    public class TempDataVo : BaseVo
    {
        #region Constract
        public TempData mTempData;
        public TempDataVo(TempData tempData)
        {
            mTempData = tempData;
        }
        #endregion


        #region propertys

        public Int64 Id
        {
            get
            {
                return mTempData.id;
            }
            set
            {
                mTempData.id = value;
                OnPropertyChanged(this, nameof(Id));
            }
        }

        /// <summary>
        /// 注释:服务器Token对象
        /// 可空:YES
        /// </summary>

        public String Token
        {
            get
            {
                return mTempData.token;
            }
            set
            {
                mTempData.token = value;
                OnPropertyChanged(this, nameof(Token));
            }
        }

        /// <summary>
        /// 注释:所属客户端
        /// 可空:YES
        /// 默认值:0
        /// </summary>

        public Int64? ClientId
        {
            get
            {
                return mTempData.clientId;
            }
            set
            {
                mTempData.clientId = value;
                OnPropertyChanged(this, nameof(ClientId));
            }
        }

        /// <summary>
        /// 注释:所属公司
        /// 可空:YES
        /// 默认值:0
        /// </summary>

        public Int64? CompanyId
        {
            get
            {
                return mTempData.companyId;
            }
            set
            {
                mTempData.companyId = value;
                OnPropertyChanged(this, nameof(CompanyId));
            }
        }


        public Int32? IsDelete
        {
            get
            {
                return mTempData.isDelete;
            }
            set
            {
                mTempData.isDelete = value;
                OnPropertyChanged(this, nameof(IsDelete));
            }
        }


        public DateTime? DeleteTime
        {
            get
            {
                return mTempData.deleteTime;
            }
            set
            {
                mTempData.deleteTime = value;
                OnPropertyChanged(this, nameof(DeleteTime));
            }
        }

        #endregion

        #region Text

        #endregion

    }
}
